<table class="formTable">
<tbody>
{if $operation == '更新'}
	<tr>
		<th>登録日時</th>
		<td>{$forms.r_date}<input type="hidden" name="forms[r_date]" value="{$forms.r_date}" /></td>
	</tr>
	<tr>
		<th>更新日時</th>
		<td>{$forms.u_date}<input type="hidden" name="forms[u_date]" value="{$forms.u_date}" /></td>
	</tr>
	<tr>
		<th>ID</th>
		<td>{'%06d'|sprintf:$id}</td>
	</td>
	</tr>
{/if}
<tr>
	<th class="must">会社名</th>
	<td>
		{assign var=key value='company_name'}
		<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th class="must">担当者名</th>
	<td>
		{assign var=key value='person_name'}
		<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th class="must">TEL</th>
	<td>
		{assign var=key value='tel'}
		<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th class="must">E-mail</th>
	<td>
		{assign var=key value='email'}
		<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th class="must">サイト名</th>
	<td>
		{assign var=key value='site_name'}
		<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th>ロゴ画像</th>
	<td>
		<div id="logo">
			{if isset($forms.logo_file)}{image_uploader name='forms[logo_file][]' value=$forms.logo_file}{else}{image_uploader name='forms[logo_file][]'}{/if}
			<a href="javascript:;" class="btnDel">削除 </a>
		</div>
	</td>
</tr>
<tr>
	<th>公開側基本認証</th>
	<td class="disabled_form">
		{foreach item=text key=value from=$auth_flag_map}
		<label><input type="radio" name="forms[auth_flg]" value="{$value}" onClick="{if $value == 1}$('#auth_info').show();{else}$('#auth_info').hide();{/if}" {if $value == $forms.auth_flg}checked{/if}/>{$text}</label>
		{/foreach}
		<div id="auth_info" {if $forms.auth_flg != 1}style="display:none;"{/if}>
		<dl>
			<dd>メッセージ（半角英数字推奨）</dd>
			<dt>
				{assign var=key value='auth_name'}
				<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
				{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
			</dt>
		</dl>
		<dl>
			<dd>ユーザ名</dd>
			<dt>
				{assign var=key value='auth_user'}
				<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
				{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
			</dt>
		</dl>
		<dl>
			<dd>パスワード</dd>
			<dt>
				{assign var=key value='auth_pwd'}
				<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
				{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
			</dt>
		</dl>
		</div>
	</td>
</tr>
<tr>
	<th class="must">公開側URL</th>
	<td>
		{if $forms.url != ''}<img src="http://capture.heartrails.com/200x200?{$forms.url}" class="b10" /><br />{/if}
		{assign var=key value='url'}
		<input type="text" name="forms[{$key}]" id="text_{$key}" class="text" value="{$forms[$key]}" />
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th>メンテナンス</th>
	<td>
		{html_checkboxes name="forms[mainte_flg]" options=$mainte_flag_map selected=$forms.mainte_flg}
	</td>
</tr>
</tbody>
</table>